package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Banner;
import cn.wolfcode.luowowo.domain.Region;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;


/**
 *
 * banner广告持久化接口
 */
public interface BannerRepository extends MongoRepository<Banner,String> {

    /**
     * 根据状态和类型查询banner广告
     * @param state
     * @param type
     * @param pageable
     * @return
     */
    List<Banner> findByStateAndType(int state, int type, Pageable pageable);
}
